<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="UTF-8">
		<title>LingPowerAI</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<!-- <script src="../../js/H5+.js"></script> -->
		<script type="text/javascript">
			document.write('<script src="../../js/fix.js?rd=?rd=' + Math.random() + '"><\/script>');
		</script>
		<script type="text/javascript">
			link(['../../fonts/iconfont/iconfont.css']);
		</script>
		<style>
		
			.titleDiv {
				height: 0.3rem;
				padding-top: 0.05rem;
				font-size: 0.17rem;
			}
		
			.planDiv{
				text-align: center;
				padding-top: 0.1rem;
				height: 0.75rem;
			}
			.planDiv div{
				float: left;
			}
			.planDiv span{
				color: #47BAFE;
				font-size: 0.22rem;
			}
			
			.actionTitle, .actionResult, .xu-line-gray{
				width: 100%;
				margin: 0.05rem auto;
			}
			.actionTitle:first-child{
				font-weight: bold;
			}
			
			.suggestedAction {
				text-align: center; margin: auto;
				    width: 50%;
			}
			
			.chart {
				height: 2.5rem;
				margin: 0px;
				padding: 0px;
				width: 100%;
			}
			.chart .zr-element {
			}
			.custType {
				width: 50%;
				font-size: 0.14rem;
				color: #888888;
				margin: 0.17rem auto;
			}
			.custCount {
				width: 50%;
				font-size: 0.26rem;
				color: #47BAFE;
				margin: 0.17rem auto;
				font-size: 0.19rem;
			}
			#addActionManual >.audio_icon{
				height: 0.65rem;
				width: 0.65rem;
				opacity: 0.9;
				background-repeat: no-repeat;
				background-size: 100%;
				background-image: url(../../fonts/iconfont/audio_icon.png);
			}
			#addActionManual {
				opacity: 0.9;
				background: #FFFFFF;
				border-radius: 50%;
				position: fixed;
				bottom: 0.1rem;
				right: 0.15rem;
				width: 0.65rem;
				height: 0.65rem;
				z-index: 99;
			}
			.mui-btn-primary {
				height: 0.34rem;
				width: 2rem;
			}
			.mui-btn-block {
				padding: 0;
				font-size: 0.14rem;
			}
			.actionArea {
				padding-top:0.7rem ;
			}
			.actionButton span {
				font-size: 0.22rem !important;
			}
			.xu-line-gray {
				border-top: 0.01rem solid #f3f3f3;
			}
			.actionButton {
				margin: 0.15rem auto 0.12rem;
			}
			.box {
				box-shadow: 0px 0.01rem 0.09rem -0.02rem #47BAFE;
				padding: 0.03rem 0.1rem 0.03rem 0.2rem;
				margin:0;
			}
			.Title {
				position: relative;
				height: 0.45rem;
				display: flex;
				padding: 0.02rem;
				align-items: center;
			}
			.Title span {
			background: #47BAFE;
			color: white;
			line-height: 0.45rem;
			height:0.45rem;
			border-radius: 5px;
			text-align: center;
			width: 0.45rem !important;
			display: block;
			margin: 0px 0.1rem 0px 0.05rem;
			float: left;
			}
			.Title p {
			     height: 0.5rem;
				 line-height: 0.2rem;
				 font-size: 0.12rem;
			}
			.label {
				width: 100%;
			}
			.label span {
				height: 0.25rem;
				background-color: #9c9c9c;
				line-height: 0.25rem;
				display: inline-block;
				padding: 0 0.08rem;
				margin: 0.03rem 0.06rem;
				border-radius: 0.04rem;
				color: white;
				font-size: 0.13rem;
			}
			
			.labelShare {
				width: 100%;
				display: flex;
				border-radius: 5px;
				background-color: #9c9c9c; opacity:0.8;
				justify-content: space-around;
				margin-bottom: 0.1rem;
				margin-top: 0.1rem;
				align-items: center;
			}
			
			.labelShare p {
				padding: 0.05rem;
				margin: 0;
				 overflow: hidden;
				 text-overflow: ellipsis; 
				display: -webkit-box;
				 -webkit-box-orient: vertical; 
				white-space: normal;
				-webkit-line-clamp: 2;
			}
			
			.labelShare p a {
				color: white;
			}
			
			#NextActionDetail div p {
				display: flex;
				justify-content: flex-start;
				font-size: 0.12rem;
			}
			#NextActionDetail div p span:first-child {
				flex: 1;
			}
			#NextActionDetail div p span:last-child {
				flex: 3;
			}
			b {
				font-size: 0.17rem;
			}
			
			.suggestedActionBtnArea {
				display: flex;
				justify-content: center;
				align-items: center;
				margin: 0.1rem 0;
			}
			.suggestedActionBtnArea .left {
				flex: 3;
				display: flex;
				flex-wrap: wrap;
				border-right: 0.01rem solid #ccc;
			}
			.suggestedActionBtnArea .rigth {
				flex: 2;
				display: flex;
				justify-content: center;
			}
		
			.imginfo {
				width: 100%;
				margin-top: 0.1rem;
				position: relative;
			}
			.hiddeinfo {
				position: absolute;
				top:0;
				width: 100%;
				background:#000000; opacity: 0.8;
				color: white;
				border-radius: 5px;
				padding: 0.1rem 0.05rem;
			}
			.xdtemplate{
				padding-top: 0.1rem;
			}
			.mask{
				 display: none;
				position: fixed;
				height: 100vh;
				 opacity: 0;
				width: 100vw;
				z-index: 50;
			}
			#AICalendarArea{
			 margin-top: 0.1rem;
			}
			.trends{
				padding-top: 0.1rem;
				padding-bottom: 0.1rem;
			}
			
		.lable_span{
                overflow: hidden;
				height:0.6rem;
				/* text-overflow: ellipsis; */
				display: -webkit-box;
				/* -webkit-box-orient: vertical; */
				white-space: normal;
				-webkit-line-clamp: 2;
   		}

		.act_description{
			overflow: hidden;
              color: #000000;
			  display: inline-block;
			  font-size: 0.14rem;
				/* padding-right: 50px; */
		    height: 0.45rem;
			line-height: 0.23rem;
			padding: 0.02rem;
			width: calc(100% - 0.6rem);
				/* text-overflow: ellipsis; */
			display: -webkit-box;
			-webkit-box-orient: vertical;
			white-space: normal;
			position: relative;
			-webkit-line-clamp: 2;
		}
		.chakan{
				color: #8f8f94;
			font-size: 0.13rem;
 			background: #fff;
			float:right;
			margin-top: 0.03rem;
		}
	.cBtn:active{
		background: #4B9CF7;
	}
		.cBtn{
			background: #47BAFE;
			width: 2rem;
			line-height: 0.6rem;
			text-align: center;
			color: #FFFFFF;
			border-radius:10px;
			height: 0.6rem;
			font-size: 0.15rem;
			display: block;
			vertical-align: middle;
			margin: 0 auto;
			box-shadow: 0px 10px 7px rgba(83, 177, 233, 0.54);
			margin-bottom: 0.3rem;
			margin-top: 0.3rem;
			opacity: 0.8;
		}
		.cbtndh{
			animation: cBtnDh .8s infinite;
		}
		@keyframes cBtnDh{
			0%{
				transform: scale(1);
			}
			50%{
				transform: scale(0.8);
			}
		100%{
				transform: scale(1);
			}
		}
			#topcyc {
				position: relative;
			}
		
			.topcyc img{
				width: 0.4rem;
				position: absolute;
				top: -0.15rem;
				right: 0rem;
			}
			.maskcyc{
				position: fixed;
				height: 100vh;
				width: 100vw;
				top: 0rem;
				left: 0rem;
				display: none;
				z-index: 111;
				background: rgba(0,0,0,0.7);
			}
			.maskbox{
				position: absolute;
				background: rgba(255,255,255,0.9);
				width: 80%;
				border-radius: 5px;
				margin: 0 auto;
				margin-left:10%;
				padding:0.2rem 0px;
				top: 50%;
				transform: translateY(-50%);
				animation: maskdh .5s;
			}
			@keyframes maskdh{
				from{
					transform:translateY(-50%) scale(0.5);
				}
				to{
					transform:translateY(-50%) scale(1);
				}
			}
			.maskbox h4{
				text-align: center;
				color: #47BAFE;
			}
			.maskbox .mask_phone{
				text-align: center;
				font-size: 0.18rem;
				height: 0.7rem;
				line-height: 0.7rem;
			}
			.maskbox button:active{
				background: #DCE7FD !important;
			}
			.maskbox button{
				background: #47BAFE;
				color: #FFFFFF;
				border:none;
				width: 28%;
				margin: 0.05rem;
			}
			.maskbox button:nth-child(2){
				background: green;
			}
				.maskbox button:last-child{
				background:#4d72d5;
			}
			.button-box{
			text-align: center;
				}
				.head_mask{
					display: flex;
					width: 90%;
					background: #47BAFE;
					color: #FFFFFF;
					height: 0.3rem;
					margin-top: 0.1rem;
					line-height: 0.3rem;
					margin-left: 5%;
				}
				.head_mask span{
					border-right: .5px solid #FFFFFF;
					flex: 1;
					text-align: center;
					display: block;
				}
				.head_mask span:last-child{
					border: none;
				}
				.content_mask{
					padding: 0rem;
				}
				.content_mask li{
					display: flex;
					width: 90%;
					margin-left: 5%;
					height: 0.4rem;
					line-height: 0.4rem;
				}
				.content_mask li span{
					flex: 1;
					text-align: center;

				}
				.content_mask li span:last-child{
					text-align: right;
				}
				.content_mask li .wxbtn{
					background: green;
					color: #FFFFFF;
					width: 60%;
					font-size: 0.13rem;

				}
				.content_mask li .telbtn{
					background: #47BAFE;
					color: #FFFFFF;
					font-size: 0.13rem;
					width: 60%;

				}
				.closecyc{
					font-size: 0.4rem;
					position: absolute;
					top:0.05rem;
					right: 0.05rem;
				}
				.mask_navBox{
					position: fixed;
					width: 100%;
					height: 100%;
			       top: 0rem;
				   z-index: 100;
				   left: 0rem;
				   background-color: rgba(0,0,0,0.7);
				}
				.mask_navBox .today_state{
					margin-top: 50px;
					width: 100%;
					border-radius: 0.1rem;
					margin-bottom: 0.15rem;
				}
				.mask_navBox .jiantou{
					width: 50%;
					margin-left: 25%;
				}

					.mask_navBox .text{
						margin: 0.15rem 0.15rem;
					  font-size: 0.21rem;
					  color: #FFFFFF;
					  line-height: 0.33rem;
					}
					.mask_navBox .btn{
						margin: 0 auto;
						display: block;
						width: 1.2rem;
						border-radius: 10px;
						color: #FFFFFF;
						font-size: 0.22rem;
						height: 0.4rem;
						line-height: 0.4rem;
						box-sizing: content-box;
						text-align: center;
						border: 0.03rem solid #FFFFFF;
					}
					.jiantou2_img{
						display: inline-block;
						vertical-align: middle;
						height:0.9rem;
						width: 45%;
						margin-left: 5%;
						text-align: center;
					}
					.jiantou2_img img{
						max-height: 0.9rem;
						height: 100%;
						width: 100%;
					}
					.yes_know{
						display: inline-block;
						vertical-align: middle;
						width: 45%;
					}
					.car_img{
						width: calc(100% - 0.2rem);
						margin-left: 0.1rem;
						border-radius: 0.1rem;
						margin-top: 0.1rem;
					}
				
		</style>
	</head>

	<body>
		<div class="mask_navBox" id="mask_navBox" style="display: none;" >
		<div id="mask_nav0" style="display: none;">
			<img src="../../images/mask_nav/today_state.png" alt="" class="today_state">
			<img src="../../images/mask_nav/jiantou.png" alt="" class="jiantou">
			<div class="text">1. 每日诊断结果汇总，<span style="color: #ee630e;">点击底部「客户」 菜单开始诊断</span></div>
	          <a href="javascript:;" class="btn" id="next_btn">下一步</a>
		 </div>
			<div id="mask_nav1" style="padding-top: 0px;" >
			<div class="text">2. 诊断后基于客户社交动态，<span style="color: #ee630e;">自动推荐聊天话题及产品推荐时机</span></div>
			<div class="jiantou2_img">
				<img src="../../images/mask_nav/jiantou2.png" alt="" class="jiantou">
			</div>
			<div class="yes_know">
				<a href="javascript:;" class="btn" id="yes_know_btn">知道了</a>
			</div>
			<img src="../../images/mask_nav/card.png" alt="" class="car_img">
			</div>
		</div>
	
         

		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title" id="title_name">首页</h1>
		</header>

		<div id="addActionManual" class="none">
			<p class="audio_icon"></p>
		</div>

		<div class="mui-content "  id="pullrefresh">
			<div class="mask" id="mask"></div>
		</div>

		<!-- 首页-判断有日程完成时 -->
		<!-- 	<div id="HasFinishedActionArea" class="none">
				<div class="mui-slider HasFinishedAction-slider" style="width: unset; margin: 10px;">
					<div id="FinishedActionList" class="mui-slider-group"> -->
		<!-- 已完成但是没有反馈的日程列表 -->
		<!-- 		</div>
				</div>
			</div> -->

		<!-- 首页 - 智能日历展示 -->
		<div id="AICalendarArea"  style="display: none;">
			<!-- class="none " -->
			<div id="todayActionArea">
				<div class="box box-info trends">
					<div class="titleDiv">
						<div class="pull-left" style="width: 75%;">
							<span class="mui-icon fa fa-calendar-minus-o common-font-color-blue"></span>
							<!-- <b>今天日程</b> -->
							<b>今天动态</b>
						</div>
						<!-- 	<div class="pull-right" style="width: 20%; text-align: right;">
								<span id="gotoMap" class="mui-icon mui-icon-map common-font-color-blue"></span>
							</div> -->
					</div>
					<div class="shi-line-gray"></div>
					<div class="planDiv">
						<div style="width: 33.33%;">
							<!-- <p>已计划</p> -->
							<p>扫描客户</p>
							<span id="PlanedSechdualSpan">0</span>
						</div>
						<div style="width: 33.33%;">
							<p>行动推荐</p>
							<span id="SuggestedSechdualSpan">0</span>
						</div>
						<div style="width: 33.33%;">
							<!-- <p>已完成</p> -->
							<p>行动跟进</p>
							<span id="FinishedSechdualSpan">0</span>
						</div>
					</div>
					<!-- <div class="shi-line-gray"></div> -->
					<!-- 	<div>
							<span class="mui-icon fa fa-calendar-minus-o common-font-color-blue"></span>
							<b>下个日程</b>
						</div> -->
					<!-- <div id="NextActionDetail" style="display: flex;"> -->
					<!-- 下个日程详情 -->
					<!-- </div> -->
					<!-- <div class="shi-line-gray"></div> -->
					<!-- <div id="reviewAllPlanBtn" style="text-align: center;">
							<p>查看全部日程&gt;&gt;</p>
						</div> -->
				</div>
			</div>

			<!-- 行动推荐 -->
			<div class="SuggestedActionArea">
				<div class="mui-slider SuggestedAction-slider" style="width: unset; margin: 0.1rem;">
					<div id="SuggestedActionList" class="mui-slider-group">
						<!-- 行动推荐列表 -->
					
						
					</div>
				</div>
			</div>

			<!-- 客户分析 -->
			<div class="box box-info">
				<div class="titleDiv">
					<span class="mui-icon fa fa-pie-chart common-font-color-blue"></span>
					<b>客户分析</b>
				</div>
				<div class="shi-line-gray"></div>
				<div style="display: flex;">
					<div style="width: 50%;">
						<div class="pull-left custType">高潜力</div>
						<div id="high_cust_Span" class="pull-left custCount">0</div>
						<br />
						<div class="pull-left custType">中潜力</div>
						<div id="mid_cust_Span" class="pull-left custCount">0</div>
						<br />
						<div class="pull-left custType">低潜力</div>
						<div id="lower_cust_Span" class="pull-left custCount">0</div>
					</div>
					<div class="shi-line-gray-column"></div>
					
					<div style="text-align: center; margin: auto;position: relative;">
						<div id="pieChart" style="height: 1.5rem;width: 1.5rem;" ></div>
					</div>
				</div>
				<div class="shi-line-gray"></div>
				<div id="reviewCustomerReportBtn" style="text-align: center;">
					<p><span class="iconfont iconbaogao" style="color: #47BAFE;">&nbsp;</span>查看客户详细分析报告<span class="mui-icon mui-icon-arrowright " style="font-size: 0.18rem;"></span></p>
				</div>
			</div>

			<!-- 业务趋势 -->
		<!-- 	<div class="box box-info" style="margin-top: 0.15rem;">
				<div class="titleDiv">
					<span class="mui-icon fa fa-pie-chart common-font-color-blue"></span>
					<b>业务趋势</b>
				</div>
				<div class="shi-line-gray"></div>
				<div style="text-align: center; margin: auto;">
					<div class="chart" id="lineChart"></div>
				</div>
			</div> -->
			<!-- </div> -->
			 <div  class="maskcyc" id="maskcyc">
				 <div class="maskbox">
					 <h4>恭喜你获得一个机会</h4>
					 <div class="mask_phone">139xxxx4791</div>
					 <div class="button-box">
						  <button>
							  <span class="mui-icon mui-icon-phone" style="font-size: 0.18rem;"></span>呼叫</button>
						 <button>
							  <span class="mui-icon mui-icon-weixin" style="font-size: 0.18rem;"></span>
							 微信</button>
						 <button id="yesMask">确定</button>
					 </div>
					
				 </div>
			 </div>
			  <div class="maskcyc" id="maskcyc2" >
			 				 <div class="maskbox">
								 <div id="closecyc" class="mui-icon mui-icon-closeempty closecyc"></div>
			 					 <h4>获得线索记录</h4>
								 <div  class="head_mask">
									<span>时间</span>
									<span>名单</span>
									<span>动作</span>
								 </div>
								 <ul class="content_mask">
									<li>
										 <span>2018-09-22</span>
										<span>179xxxx4111</span>
										<span>
											<button class="telbtn">呼叫</button>
										</span>
									</li>
									<li>
										 <span>2018-09-21</span>
										<span>139xxxx4791</span>
										<span>
											<button class="wxbtn">微信</button>
										</span>
									</li>
									<li>
										 <span>2018-09-20</span>
										<span>139xxxx4791</span>
										<span><button class="telbtn">呼叫</button></span>
									</li>
								 </ul>
			 			
			 					
			 				 </div>
			 </div>
			<div class="box box-info" style="margin-top: 0.15rem;height: 1.8rem;margin-bottom: 0.15rem;">
				<p></p>
				<div id="topcyc" class="topcyc">
					<div class="cBtn" id="cbtn" >缺少线索？试试手气</div>
					<img id="lsjlimg" src="../../images/lsjl.png" alt="">
				</div>
				<p></p>
				<div style="text-align: center;font-size: 0.16rem;color: #545454;">戳一戳匹配潜在客户（仅对年卡会员开放）</div>
				
			</div>
		</div>

		<!-- 已完成但是没有反馈行动列表模板 -->
		<script type="text/html" id="FinishedActionTemplate">
			{{if DATASET==null||DATASET.length==0}}
			<div class="nodata">暂无内容</div>
			{{else}} {{each DATASET as value}}
				<div id="ACTION_{{value.id}}"  class="box box-info mui-slider-item">
					<div class="actionTitle pull-left">
						<span>日程({{value.actionName}})是否已完成</span>
						<span class="mui-icon mui-icon-close pull-right" aria-hidden="true" data-id = "{{value.id}}"></span>
					</div>
					<div class="actionResult pull-left">
						<div class="pull-left" style="width: 30%;">结果如何？</div>
						<div>
							<div class="pull-left" style="width: 30%;">
								<span class="mui-icon fa fa-thumbs-up" aria-hidden="true"></span>
								顺利
							</div>
							<div class="pull-left" style="width: 30%;">
								<span class="mui-icon fa fa-thumbs-down" aria-hidden="true"></span>
								不顺利
							</div>
						</div>
					</div>
					<div class="xu-line-gray pull-left"></div>
					<div class="actionArea">
						<button class="mui-btn mui-btn-block mui-btn-primary actionButton" data-id="{{value.id}}">
							<span class="mui-icon mui-icon-mic"></span>
							按住记录语音笔记
						</button>
					</div>
				</div>
			{{/each}} {{/if}}
		</script>

		<!-- 下个日程详情模板 -->
		<script type="text/html" id="NextActionDetailTemplate">
			{{if DATASET==null||DATASET.length==0}}
			<div class="nodata">暂无内容</div>
			{{else}} {{each DATASET as record}}
			<div style="width: 70%;">
				<p style="color: #000000; margin-top: 0.1rem;">
					<span>{{record.time}}</span>
					<span>{{record.action}}</span>
				</p>
				<p>
					<span>{{record.date}}</span>
					<span>{{record.contact}}</span>
				</p>
				<p>
					<span>{{record.during}}</span>
					<span>上次互动:{{record.last}}</span>
				</p>
			</div>
			<div class="shi-line-gray-column"></div>
			<div id="today_action_type_div" style="text-align: center; margin: auto;">
				{{if record.type == "phone"}}
				<img onclick="gotoCall('{{record.phone_no}}')" src="../../images/home/call.png" style="width: 40%;" />
				{{else if record.type == "weixin"}}
				<img onclick="gotoWeChat('{{record.wechat_nm}}')" src="../../images/home/wx.png" style="width: 40%;" />
				{{else if record.type == "visit"}}
				<img src="../../images/home/ditu.png" style="width: 40%;" />
				{{else}}
				<img src="../../images/home/wenhao.png" style="width: 40%;" />
				{{/if}}
			</div>
			{{/each}} {{/if}}
		</script>

		<!-- 行动推荐列表模板 -->
		<script type="text/html" id="SuggestedActionTemplate">
			{{if DATASET==null||DATASET.length==0}}
			{{else}} {{each DATASET as value}}
			
				<div id="SUGGEST_{{value.suggest_id}}"   act_type="0"  class="box box-info mui-slider-item xdtemplate">
					
					<div>
						<b>行动推荐</b> <span class="count_index" style="color:#A9A9A9;margin-left: 0.05rem;"></span>
						{{if value.act_event == "0"}}
									<div class="chakan"  onclick="showMessage('{{value.suggest_id}}')">
									<i class="mui-icon fa fa-info-circle";></i> 查看详情
										</div>
						{{/if}}
					</div>
					<div class="shi-line-gray"></div>
						{{if value.act_type_id !="ACT_TYPE_000004"}}
					<div class="goCustomerDetail"  onclick="goCustomerDetail('{{value.cust_id}}','{{value.src!="0"?(value.wechat_memo=="" ||value.wechat_memo==null?value.wechat_nm:value.wechat_memo):value.phone_nm}}')">
					{{/if}}
					<div class="Title">
						<span style="width: 0.5rem;display: inline-block; height: 0.4rem;">{{value.act_nm}}</span>
						<div style="margin:0px; " class="act_description"> {{value.act_description}}	</div>
					
					</div>
					<div class="shi-line-gray"></div>
					
					<div class="imginfo">
						{{if value.act_img == null || value.act_img.trim() == ""}}
						<img src="../../images/event/event_img_2.png" alt="">
						{{else}}
						<img src="../../images/event/{{value.act_img}}.png" alt="">
						{{/if}}
						<div class="hiddeinfo none" id="messageId_{{value.suggest_id}}">
							 <span>{{value.act_source_content}}</span>
						</div>
					</div>
					<div class="shi-line-gray "></div>
					{{if value.act_event == "0"}}
					<div class="label lable_span lablcout"> 
						{{if value.label1 != null && value.label1.trim() != ""}}
						<span>{{value.label1}}</span>
						{{/if}}
						{{if value.label2 != null && value.label2.trim() != ""}}
						<span>{{value.label2}}</span>
						{{/if}}
						{{if value.label3 != null && value.label3.trim() != ""}}
						<span>{{value.label3}}</span>
						{{/if}}
						{{if value.label4 != null && value.label4.trim() != ""}}
						<span>{{value.label4}}</span>
						{{/if}}
						{{if value.label5 != null && value.label5.trim() != ""}}
						<span>{{value.label5}}</span>
						{{/if}}
						{{if value.label6 != null && value.label6.trim() != ""}}
						<span>{{value.label6}}</span>
						{{/if}}
						{{if value.label7 != null && value.label7.trim() != ""}}
						<span>{{value.label7}}</span>
						{{/if}}
						{{if value.label8 != null && value.label8.trim() != ""}}
						<span>{{value.label8}}</span>
						{{/if}}
						{{if value.label9 != null && value.label9.trim() != ""}}
						<span>{{value.label9}}</span>
						{{/if}}
						{{if value.label10 != null && value.label10.trim() != ""}}
						<span>{{value.label10}}</span>
						{{/if}}
					</div>
					{{if value.act_type_id != "ACT_TYPE_000003"}}
					  </div>
					  {{/if}}
					{{else}}
					<div class="labelShare" onclick="gotoLink('{{value.act_article_title}}', '{{value.act_article_link}}')">
						<p style="padding-left:0.1rem;"><a>{{value.act_article_title}}</a></p>
					</div>
					{{/if}}
					<div class="shi-line-gray"></div>
					<div class="suggestedActionBtnArea">
						<div class="left" >
							{{if value.act_event == "0"}}
						<!-- 	<div class="suggestedAction" onclick="gotoCall('{{value.phone_no}}')">
								<img src="../../images/home/call.png" style="width: 25%;" />
								<br />
								<span>立即电话</span>
							</div>
							<div class="suggestedAction" onclick="gotoWeChat('{{value.wechat_no}}')">
								<img src="../../images/home/wx.png" style="width: 25%;" />
								<br />
								<span>微信联系</span>
							</div> -->
								<div class="suggestedAction" onclick="insertFollow('{{value.phone_no}}','{{value.cust_id}}','{{value.suggest_id}}','0','{{value.src!="0"?(value.wechat_memo=="" || value.wechat_memo==null?value.wechat_nm:value.wechat_memo):value.phone_nm}}',false,'{{value.wechat_no}}')">
									<img src="../../images/home/call.png" style="width: 18%;" />
									<br />
									<span>立即电话</span>
								</div>
								<div class="suggestedAction" onclick="insertFollow('{{value.wechat_no}}','{{value.cust_id}}','{{value.suggest_id}}','1','{{value.src!="0"?(value.wechat_memo=="" || value.wechat_memo==null?value.wechat_nm:value.wechat_memo):value.phone_nm}}',false,'{{value.wechat_no}}')">
									<img src="../../images/home/wx.png" style="width: 22%;" />
									<br />
									<span>微信联系</span>
								</div>
							{{else if value.act_event == "1"}}
							<div class="suggestedAction">
							
								<img onclick="gotoShare('{{value.suggest_id}}','{{value.act_article_title}}','{{value.act_article_link}}','{{value.wechat_no}}','{{value.cust_id}}','2','{{value.wechat_no}}')" src="../../fonts/iconfont/forward.png" style="width: 18%;" />
								<br />
								<span>立即转发</span>
								
							</div>
						
							{{/if}}
						</div>
						<div class="rigth">
							<div class="suggestedAction" id="HELPED_{{value.suggest_id}}" onclick="gotoFeedback(this, '{{value.suggest_id}}', '{{value.act_feedback}}', true)">
								<!-- <img src="../../images/zan.png" style="width: 55%;" /> -->
								{{if value.act_feedback == "1"}}
								<img src="../../fonts/iconfont/thumbs-up_on.png" style="width: 28%;" />
								{{else}}
								<img src="../../fonts/iconfont/thumbs-up_on2.png" style="width: 28%;" />
								{{/if}}
								<br />
								<span>有帮助</span>
							</div>
							<div  class="suggestedAction" id="UNHELPED_{{value.suggest_id}}" onclick="gotoFeedback(this, '{{value.suggest_id}}', '{{value.act_feedback}}', false)">
						       <img src="../../fonts/iconfont/closeKP.png" style="width: 28%;" alt="">
							<!-- 	{{if value.act_feedback == "0"}}
								<img src="../../fonts/iconfont/thumbs-no.png" style="width: 28%;" />
								{{else}}
								<img src="../../fonts/iconfont/thumbs-no2.png" style="width: 28%;" />
								{{/if}} -->
								<br />
								<span>没帮助</span>
							</div>
						</div>
						
					</div>
					
				</div>
				
			{{/each}} {{/if}}
		</script>

		<script type="text/javascript">
			script(["../../libs/echarts/echarts-all.js"]);
		</script>

		<script type="text/javascript">
			var suggest_slider2;
			mui.init({
				pullRefresh: {
					container: '#pullrefresh',
					down: { //下拉刷新
						callback: pulldownRefresh,
						style: mui.os.android ? "circle" : "default"
					}
				},
				beforeback: function() {
					appPage.closeLogin();
				}
			});
			
			document.getElementById("next_btn").addEventListener("tap",function(){
				document.getElementById("mask_nav0").style.display="none";
				document.getElementById("mask_nav1").style.display="block";
		
			})
			document.getElementById("yes_know_btn").addEventListener("tap",function(){
				document.getElementById("mask_navBox").style.display="none";
				document.body.style.overflow="auto";
				document.body.style.height="auto";
				document.getElementsByTagName("html")[0].style.overflow="auto";
				document.getElementsByTagName("html")[0].style.height="auto";
			
			})
		mui.plusReady(function() {
			var isLoadHome = localStorage.getItem("isLoadHome");
			if (isLoadHome != "yes") {//是否第一次加载,第一次加载显示导航
				document.getElementById("mask_navBox").style.display="block";
				document.getElementById("mask_nav0").style.display="block";
				document.getElementById("mask_nav1").style.display="none";
				document.body.style.overflow="hidden";
				document.body.style.height="100vh";
				document.getElementsByTagName("html")[0].style.overflow="hidden";
				document.getElementsByTagName("html")[0].style.height="100vh";
				localStorage.setItem("isLoadHome","yes");
			}
	
			setInterval(function(){
						 document.getElementById("cbtn").classList.add("cbtndh"); 
						 setTimeout(function(){
							 document.getElementById("cbtn").classList.remove("cbtndh"); 
						 },1600);
			},10000)
			ws = plus.webview.currentWebview();
			ws.setStyle({
				scrollIndicator:"none"
			})
				// mui.ready(function() {
				//绑定[悬浮按钮]事件
				document.getElementById("addActionManual").addEventListener("tap", function() {
					// mui.alert("【悬浮按钮】功能尚未开放!");
					mui.openWindow({
						url: "../sound/programme.html",
						id: "programme",
						styles: {
							titleNView: {
								autoBackButton: true,
								backgroundcolor: "#47BAFE",
								titleText: "智能笔记",
								titlecolor: "white",
							}
						},
						show: {
							autoShow: true, //页面loaded事件发生后自动显示，默认为true
							aniShow: 'slide-in-bottom', //页面显示动画，默认为”slide-in-right“；
						},
						waiting: {
							autoShow: false
						}
					})
				});


				//绑定[行动地图]事件
				// document.getElementById("gotoMap").addEventListener("tap", function() {
				// 	mui.alert("【行动地图】功能尚未开放!");
				// });

				//绑定[查看所有日程]事件
				// document.getElementById("reviewAllPlanBtn").addEventListener("tap", function() {
				// 	mui.alert("【查看所有日程】功能尚未开放!");
				// 	// openNew("");
				// });


				//绑定[查看heuristic详细分析报告]事件
				document.getElementById("reviewCustomerReportBtn").addEventListener("tap", function() {
					openNew("../customer/custAnalysisReport.html");
				});
				  getData();
				  setTimeout(function(){
					  document.getElementById("AICalendarArea").style.display="block";
					  plus.nativeUI.closeWaiting();
				  },300)
				  
				
			});

			//下拉刷新具体业务实现
			function pulldownRefresh() {
				//初始化当前页
				// initPage();
				setTimeout(function() {
					//下拉刷新结束
					getData();
					mui('#pullrefresh').pullRefresh().endPulldownToRefresh();
				}, 1000);
			}
			document.addEventListener("refreshPage",function(){
				pulldownRefresh();
			});
			function initPage() {

				if (!document.getElementById("NoneCustomerArea").classList.contains("none")) {
					document.getElementById("NoneCustomerArea").classList.add("none");
				}
				if (!document.getElementById("HasFinishedActionArea").classList.contains("none")) {
					document.getElementById("HasFinishedActionArea").classList.add("none");
				}
				if (!document.getElementById("AICalendarArea").classList.contains("none")) {
					document.getElementById("AICalendarArea").classList.add("none");
				}
			}

			function getData() {
				storage.init();
				storageUser = kidstorageuser.getInstance();
				//获取当前用户是否有客户信息

					//显示悬浮按钮和首页内容
					document.getElementById("addActionManual").classList.remove("none");
					document.getElementById("AICalendarArea").classList.remove("none");


					// TODO 第一阶段不显示日程相关信息
					// document.getElementById("todayActionArea").classList.add("none");

					function formatDate(dateArg) { //日期格式化
						const date = new Date(dateArg);
						const year = date.getFullYear();
						const month = date.getMonth() + 1;
						const day = date.getDate();
						const formatMonth = month < 10 ? `0${month}` : month;
						const formatDay = day < 10 ? `0${day}` : day;
						return `${year}-${formatMonth}-${formatDay}`
					};
					
					//动态生成今天动态数据
					// requestJsonFile("../../data/home/todayActionCount.json", {}, function(result_count) {      
					request("/cmdb/getActivitySummaryBySalesId/", {
						sales_id:storageUser.UId,
						work_date:formatDate(new Date())
					}, function(result) {
							document.getElementById("PlanedSechdualSpan").innerText = result.DATASET.client_new_cnt;
							document.getElementById("SuggestedSechdualSpan").innerText = result.DATASET.act_suggest_cnt;
							document.getElementById("FinishedSechdualSpan").innerText = result.DATASET.act_followup_cnt;

					});


					//动态生成下个日程数据
// 					requestJsonFile("../../data/home/nextAction.json", {}, function(result) {
// 						render("#NextActionDetail", "NextActionDetailTemplate", result);
// 					});
// 


					//动态生成行动推荐卡片信息  TODO
					// requestJsonFile("../../data/home/SuggestedActionTemplate2.json", {}, function(result_suggested) {
					request("/cmdb/getCurDateSuggestAction/", {
						sales_id: storageUser.UId
					}, function(result_suggested) {
						// alert(JSON.stringify(result_suggested));
						// console.log(JSON.stringify(result_suggested.DATASET[0].wechat_memo));
						render("#SuggestedActionList", "SuggestedActionTemplate", result_suggested);
						let data=result_suggested.DATASET;
						let dom=document.getElementsByClassName("lablcout");
						for(let i=0;i<dom.length;i++){
							if(dom[i].innerHTML.trim()==""){
								dom[i].innerHTML='<p style="width: 100% ;margin: 0px;height: 0.6rem;line-height: 0.6rem;text-align: center;"><img style="height: 0.2rem; width: 0.2rem;vertical-align: middle;transform: translateY(-0.02rem);" src="../../fonts/iconfont/no_label.png"/>	暂无标签</p>'
							}
							// alert(dom[i].innerHTML.trim()=="");
						}
						let index;
						let objs = document.getElementsByClassName("count_index");
						for (let i = 0; i < objs.length; i++) {
							index = i + 1;
							objs[i].innerText = "(" + index + "/" + objs.length + ")";
						}
						//动态加载滑动控件时需要手动调用一下滑动事件
						suggest_slider2 = mui(".SuggestedAction-slider");
						suggest_slider2.slider();
					});


					//动态生成客户统计
					// requestJsonFile("../../data/home/customerCount.json", {}, function(result) {
					request("/cmdb/getAnalysisCountValue/", {
						sales_id: storageUser.UId
					}, function(result) {
						// alert(JSON.stringify(result));
						var record;
						if (result[SysConstants.DATASET_KEY].length > 0) {
							record = result[SysConstants.DATASET_KEY][0];
						} else {
							record = {
								LOW_CNT: "N/A",
								MID_CNT: "N/A",
								HIGH_CNT: "N/A"
							};
						}
						document.getElementById("lower_cust_Span").innerText = record.LOW_CNT;
						document.getElementById("mid_cust_Span").innerText = record.MID_CNT;
						document.getElementById("high_cust_Span").innerText = record.HIGH_CNT;
						
						var dataSj=[{
						  	value: record.HIGH_CNT,
						  	name: "高",
						  }, {
						  	value: record.MID_CNT,
						  	name: "中",
						  }, {
						  	value: record.LOW_CNT,
						  	name: "低",
						  }]
						  if(record.HIGH_CNT==0){
							  dataSj.splice(0,1)
						  }
						    if(record.MID_CNT==0 ){
								
								if(record.HIGH_CNT==0){
									  dataSj.splice(0,1)
								}else {
									dataSj.splice(1,1)
								}
						  }
						  if(record.LOW_CNT==0){
							  if(record.HIGH_CNT==0 && record.MID_CNT==0  ){
									dataSj.splice(0,1)
							  }else if(record.HIGH_CNT!=0 && record.MID_CNT!=0 ){
								   dataSj.splice(2,1)
							  }else {
								   dataSj.splice(1,1)
							  }
							
						}
						
						   
						   // document.getElementById("pieChasrSpan").style.display="none";
						//生成客户分析图
						var pieChartOption = {
							color: ['#18b6ff', '#0092ee', '#6fd5ff'],
								noDataLoadingOption: {
								text: '暂无数据',
								effect: 'bubble',
								effectOption: {
									   backgroundColor: "#FFFFFF",
									effect: {
										n: 0
									}
								}
							},
							calculable: false,
							series: [{
								name: "",
								type: "pie",
								radius: ["20%", "100%"],
								center: ["50%", "50%"],
								itemStyle: {
									normal: {
										borderWidth: 5,
										borderColor: '#fff',
										label: {
											position: "inner",
											formatter: function(params) {
												return params.name + "\n\r" + (params.percent - 0).toFixed(0) + '%'
											},
											textStyle: {
												fontWeight: 400,
												fontSize: 12 //文字的字体大小
											},
										},
										labelLine: {
											show: false
										}
									},
									emphasis: {
										label: {
											show: true,
											formatter: "{b}\n{d}%"
										}
									}
								},
								data: dataSj
							}]
						};

						var pieChartDiv = document.getElementById("pieChart");
						var pieChart = echarts.init(pieChartDiv);
						pieChart.setOption(pieChartOption);

					});

					//生成业务趋势图 TODO
// 					request("/cmdb/getActSuggestCount/", {
// 						sales_id: storageUser.UId
// 					}, function(result) {
// 						var data = result.DATASET;
// 						var arr = [];
// 						var symarr = [];
// 						var cntarr = [];
// 						var cntarr2 = [];
// 						for (let i = 0; i < data.length; i++) {
// 							var sym = data[i].act_ym;
// 							var suggest_cnt = data[i].suggest_cnt;
// 							var followup_cnt = data[i].followup_cnt;
// 							symarr.push(sym);
// 							cntarr.push(suggest_cnt);
// 							cntarr2.push(followup_cnt);
// 
// 						}
// 						if(symarr=="" ){
// 							let date=new Date();
// 							
// 							let m=(date.getMonth()+1)<10?"0"+(date.getMonth()+1):(date.getMonth()+1);
// 							let m2=(date.getMonth())<10?"0"+(date.getMonth()):(date.getMonth());
// 							let m3=(date.getMonth()-1)<10?"0"+(date.getMonth()-1):(date.getMonth()-1);
// 							symarr=[date.getFullYear()+"-"+m3,date.getFullYear()+"-"+m2,date.getFullYear()+"-"+m];
// 							cntarr=["0","0","0"];
// 							cntarr2=["0","0","0"]
// 						}
// 						// alert(JSON.stringify(cntarr));
// 						var lineChartOption = {
// 							tooltip: {
// 								trigger: 'axis',
// 								backgroundColor: 'rgba(255,255,255,0.8)',
// 								color: 'black',
// 								borderWidth: '1',
// 								borderColor: 'gray',
// 								textStyle: {
// 									color: '#545454',
// 								},
// 								formatter: function(params) { //数据单位格式化  
// 									var relVal = params[0].name; //x轴名称  
// 									for (var i = 0, l = params.length; i < l; i++) {
// 										if (params[i].value) {
// 											if (i == 1) {
// 												relVal += '<br/><span style="color:#6fd5ff;float:left">●</span>  ' + params[i].seriesName + ' : ' +
// 													params[i].value;
// 											} else {
// 												relVal += '<br/><span style="color:#0092ee;float:left">●</span>  ' + params[i].seriesName + ' : ' +
// 													params[i].value;
// 											}
// 
// 										}
// 									}
// 									return relVal;
// 								}
// 							},
// 							color: ['#0092ee', '#6fd5ff'],
// 							grid: {
// 								// x:35,
// 								x: 1,
// 								y: 35,
// 								x2: 1,
// 								y2: 40,
// 								borderWidth: 1
// 							},
// 							calculable: false,
// 							legend: {
// 								data: ["行动推荐", "行动跟进"]
// 							},
// 							xAxis: [{
// 								type: "category",
// 								data: symarr
// 							}],
// 							yAxis: [{
// 								type: "value",
// 								show: false
// 							}],
// 							series: [{
// 									name: "行动推荐",
// 									type: "line",
// 									data: cntarr
// 								},
// 								{
// 									name: "行动跟进",
// 									type: "line",
// 									data: cntarr2
// 								},
// 							]
// 						};
// 						var lineChartDiv = document.getElementById("lineChart");
// 						var lineChart = echarts.init(lineChartDiv);
// 						lineChart.setOption(lineChartOption);
// 					});
               


			}

			// function gotoWeChat(wechat_nm) {
			// 	mui.alert("【微信联系】功能改进中...");
			// }

			// 			function gotoCall(phone_no) {
			// 				if (mui.os.plus) {
			// 					plus.device.dial(phone_no);
			// 				} else {
			// 					location.href = "tel:" + phone_no;
			// 				}
			// 			}

			function insertFollow(phone_no, cid, id, act_type,name,isGj,wechat_no) { //行动跟进记录
				storage.init();
				storageUser = kidstorageuser.getInstance();
				switch (parseInt(act_type)) {
					case 0:
						if (mui.os.plus) {
							if (phone_no != "" && phone_no != null) {
								plus.device.dial(phone_no);
								isGj=true;
							} else {
								plus.nativeUI.confirm(name+"的手机号信息不存在，是否马上补充？", function(e){
									console.log("Close confirm: "+e.index);
									if(e.index==0){
										var self = plus.webview.currentWebview();
										mui.openWindow({
											url:"../customer/customerInfoEdit.html",
											id:"customerInfoEdit.html",
											extras: {
												field: "customerId",
												custId: cid,
												backid: "customer/customerInfoEdit.html"
											},
											styles: {
												titleNView: {
													autoBackButton: true,
													backgroundcolor: "#47BAFE",
													titleText: "编辑资料",
													titlecolor: "white",
													buttons: [{
															fontSrc: 'fonts/iconfont/iconfont.ttf',
															float: 'right',
															text: '\ue63b',
															// color:'#0075bb',
															fontSize:'25px',
															onclick: "javascript:plus.webview.getWebviewById('customerInfoEdit.html').evalJS('saveFrom()');"
														},
																
													]
												},
																
											},
											waiting: {
												autoShow: false
											}
										});
									}
								},
								{
									"buttons":["现在就去","稍后"],
								}
							);
							}
						} else {

							if (phone_no != "" && phone_no != null) {
								location.href = "tel:" + phone_no;
								isGj=true;
							} else {
									plus.nativeUI.confirm(name+"的手机号信息不存在，是否马上补充？", function(e){
									console.log("Close confirm: "+e.index);
									if(e.index==0){
										var self = plus.webview.currentWebview();
										openNew("../customer/customerInfoEdit.html", {
											field: "customerId",
											custId: cid,
											backid: "customer/customerInfoEdit.html"
										});
									}
								},
								{
									"buttons":["现在就去","稍后"],
								}
							);
							}

						}
						break;
					case 1:
						var timeout, t = 1000,
							hasApp = true;
						setTimeout(function() {
							if (!hasApp) {
								//没有安装微信
								var r = confirm("您没有安装微信，请先安装微信!");
								if (r == true) {
									location.href = "http://weixin.qq.com/"
								}
							} else {
								//安装微信
							}
							// document.body.removeChild(ifr);
						}, 2000);
                            if(wechat_no!="" && wechat_no!=null){
									mui.toast("正在跳转微信...");
									isGj=true;
									setTimeout(function() {
									location.href = "weixin://";
								}, 1000);
							}else {
									plus.nativeUI.confirm(name+"的微信号信息不存在，是否马上补充？", function(e){
										if(e.index==0){
											var self = plus.webview.currentWebview();
											openNew("../customer/customerInfoEdit.html", {
												field: "customerId",
												custId: cid,
												backid: "customer/customerInfoEdit.html"
											});
										}
									},
									{
										"buttons":["现在就去","稍后"],
									}
								);
							}
						
						// mui.alert("【微信联系】功能改进中...");
						break;

				}
				if(isGj==true){
					request("/cmdb/insertLpActFollowup/", {
						id: id,
						sales_id: storageUser.UId,
						cust_id : cid,
						act_followup_type: act_type
					}, function(result) {
						// mui.toast("成功跟进");
						pulldownRefresh();
					});
				}
				
			}

			// function gotoShare(id) {
			// 	mui.alert("【立即分享】功能改进中...");
			// 	
			// }
			var shares=null;
		var sweixin=null;
		var buttons=[
		  {title:'微信好友',extra:{scene:'WXSceneSession'}},
		  {title:'微信朋友圈',extra:{scene:'WXSceneTimeline'}},
		  {title:'微信收藏',extra:{scene:'WXSceneFavorite'}}
		];
			// H5 plus事件处理
			function plusReady() {
				updateSerivces();
			}
			if (window.plus) {
				plusReady();
			} else {
				document.addEventListener('plusready', plusReady, false);
			}
			/**
			 * 更新分享服务
			 */
			function updateSerivces() {
				plus.share.getServices(function(s) {
					shares = {};
					for (var i in s) {
						var t = s[i];
						shares[t.id] = t;
					}
					sweixin = shares['weixin'];
				}, function(e) {
					outSet('获取分享服务列表失败：' + e.message);
				});
			}

			// 分享网页
			function gotoShare(id, title, url, phone_no, cid, act_type,wechat_no) {
				var msg = {
					type: 'web',
					thumbs: ['../../images/logo.png']
				};
				msg.href = url;
				msg.title = title;
				msg.content = title;
				sweixin ? plus.nativeUI.actionSheet({
					title: '分享给朋友',
					cancel: '取消',
					buttons: buttons
				}, function(e) {
					(e.index > 0) && share(sweixin, msg, buttons[e.index - 1], id, phone_no, cid, act_type,wechat_no);
				}) : plus.nativeUI.alert('当前环境不支持微信分享操作!');
			}

			// 执行分享
			function share(srv, msg, button, id, phone_no, cid, act_type,wechat_no) {
				// outSet('分享操作：');
				if (!srv) {
					// outLine('无效的分享服务！');
					return;
				}
				button && (msg.extra = button.extra);
				// 发送分享
				if (srv.authenticated) {
					// outLine('---已授权---');
					doShare1(srv, msg, id, phone_no, cid, act_type,wechat_no);
				} else {
					// outLine('---未授权---');
					srv.authorize(function() {
						doShare(srv, msg, id, phone_no, cid, act_type,wechat_no);
					}, function(e) {
						mui.toast('认证授权失败：' + JSON.stringify(e));
					});
				}
			}
			// 发送分享
			function doShare1(srv, msg, id, phone_no, cid, act_type,wechat_no) {
				// outLine(JSON.stringify(msg));
				srv.send(msg, function() {
					insertFollow(phone_no, cid, id, act_type,"",true,wechat_no);
					outLine('分享到"' + srv.description + '"成功！');
				}, function(e) {
					outLine('分享到"' + srv.description + '"失败: ' + JSON.stringify(e));
				});
			}
			// 解除授权
			function cancelAuth() {
				outSet('解除授权：');
				if (sweixin) {
					if (sweixin.authenticated) {
						outLine('取消"' + sweixin.description + '"');
					}
					sweixin.forbid();
				} else {
					outLine('当前环境不支持微信分享操作!');
				}
			}
			var idd;

			function showMessage(id) {
				var checkButton = document.getElementById("messageId_" + id);
				idd = checkButton;
				if (checkButton.classList.contains("none")) {
					checkButton.classList.remove("none");
				} else {
					checkButton.classList.add("none");
				}
				document.getElementById("mask").style.display = "inline";
			}
			var obj = document.getElementById("mask");
			obj.addEventListener("touchstart", closemessage);

			function closemessage() {
				if (idd.classList.contains("none")) {
					idd.classList.remove("none");
				} else {
					idd.classList.add("none");
				}
				document.getElementById("mask").style.display = "none";

			}

			function gotoLink(title, link) {
				mui.openWindow({
					url:"openLink.html",
					id:"openLink.html",
					extras:{
						title: title,
						link: link
					},
					 waiting:{
						 autoShow:false
					 }
				});
				// openNew("openLink.html", {
				// 	title: title,
				// 	link: link
				// });
			}

			function gotoFeedback(thisDom, id, act_feedback, isHelped) {
				if(isHelped){
						request("/cmdb/insertLpActFeedback/", {
										id: id,
										act_feedback: isHelped == true ? "1" : "0",
										sales_id: storageUser.UId
									}, function(result) {
										// requestJsonFile("../../data/home/NoneCustomer.json", {id: id, act_feedback: isHelped==true?"1":"0", salesId: storage.UId}, function(result) {
										if (result[SysConstants.ERROR_CODE_KEY] == SysConstants.ERROR_CODE_OBJECT.ERROR_CODE_SUCCESS) {
												// thisDom.classList.add("common-font-color-blue");
												document.getElementById("HELPED_" + id).children[0].src = "../../fonts/iconfont/thumbs-up_on.png";
												// document.getElementById("UNHELPED_" + id).children[0].src = "../../fonts/iconfont/thumbs-no2.png";
					// 							document.getElementById("UNHELPED_" + id).children[0].src = "../../fonts/iconfont/thumbs-no.png";
					// 							document.getElementById("HELPED_" + id).children[0].src = "../../fonts/iconfont/thumbs-up_on2.png";
										} else {
											mui.toast("服务器错误");
										}
									});
				}else{
						//删除当前卡片
						request("/cmdb/closeActStatus/",{
								id: id,
								sales_id: storageUser.UId
						},function(r){
							if(r.ERROR_CODE=="SUCCESS"){
										var i = suggest_slider2.slider().getSlideNumber();
								document.getElementById("SUGGEST_" + id).remove();
								let index;
								let objs = document.getElementsByClassName("count_index");
									for(let j=0;j<objs.length;j++){
										index = j + 1;
										objs[j].innerText = "(" + index + "/" + objs.length + ")";
									}
								if (i > 0) {
									suggest_slider2.slider().prevItem();
								}
								// thisDom.classList.add("common-font-color-blue");
							}else{
								mui.toast("服务器错误");
							}
						
						})
					
				}
			
			}

			function goCustomerDetail(id, name) {
				// alert(name);
				mui.openWindow({
					url: '../customer/customerDetailInfo.html',
					id: 'customerDetail',
					extras: {
						custId: id,
						salesId: storageUser.UId
					},
					styles: {
						titleNView: {
							autoBackButton: true,
							backgroundcolor: "#47BAFE",
							titleText: name,
							titlecolor: "white",
							buttons: [{
									fontSrc: 'fonts/mui.ttf',
									float: 'right',
									text: '\ue507',
									onclick: "javascript:plus.webview.getWebviewById('customerDetail').evalJS('showmore()');"
								},

							]
						},

					},
					waiting: {
						autoShow: false
					}
				})
			}
		document.getElementById("cbtn").addEventListener("tap",function(){
		let waiting= plus.nativeUI.showWaiting("正在为您匹配线索...",{
			 width:150,
			 height:100
		 })
		 setTimeout(function(){
			document.getElementById("maskcyc").style.display="block";
			waiting.close();
		 },1500)
		})
		document.getElementById("yesMask").addEventListener("tap",function(){
			setTimeout(function(){
					document.getElementById("maskcyc").style.display="none";
		
			},100);
			
		})
		document.getElementById("closecyc").addEventListener("tap",function(){
				setTimeout(function(){
			document.getElementById("maskcyc2").style.display="none";
	
			},100);
		})
		document.getElementById("lsjlimg").addEventListener("tap",function(){
			document.getElementById("maskcyc2").style.display="block";
		})
		</script>
		<div id="outpos"/ style="display: none;"></div>
		<div id="output" style="display: none;"></div>
	</body>

</html>
